﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Adams.Public.Web.Business.Web.Announcements
{
    public static class Index
    {
        public static Adams.Public.DataTransfer.Web.Announcements.Index.PageLoad PageLoad()
        {
            var model = new Adams.Public.DataTransfer.Web.Announcements.Index.PageLoad();
            var data = Api.GetData<Adams.Public.DataTransfer.Announcements.GetAnnouncements>("Announcements/GetAnnouncements");
            model.Announcements = data.Announcements;
            return model;
        }
    }
}
